package com.sqx.modules.health.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.modules.health.entity.NcgWatch;
import com.sqx.modules.health.entity.NcgWatchAlarmInfo;
import com.sqx.modules.health.entity.NcgWatchLocationInfo;
import com.sqx.modules.health.mapper.NcgWatchMapper;
import com.sqx.modules.health.service.NcgWatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NcgWatchServiceImpl extends ServiceImpl<NcgWatchMapper, NcgWatch> implements NcgWatchService {

    @Autowired
    private NcgWatchMapper ncgWatchMapper;

    @Override
    public void saveLocationInfo(NcgWatchLocationInfo locationInfo) {
        ncgWatchMapper.saveLocationInfo(locationInfo);
    }

    @Override
    public void saveAlarmInfo(NcgWatchAlarmInfo alarmInfo) {
        ncgWatchMapper.saveAlarmInfo(alarmInfo);
    }

    @Override
    public NcgWatchLocationInfo getLocationInfoId(String id) {
        return ncgWatchMapper.getLocationInfoId(id);
    }

    @Override
    public void setLocationInfo(NcgWatchLocationInfo locationInfo) {
        ncgWatchMapper.setLocationInfo(locationInfo);
    }

    @Override
    public NcgWatchAlarmInfo getAlarmInfoId(String id) {
        return ncgWatchMapper.getAlarmInfoId(id);
    }

    @Override
    public void setAlarmInfo(NcgWatchAlarmInfo alarmInfo) {
        ncgWatchMapper.setAlarmInfo(alarmInfo);
    }

    @Override
    public NcgWatchLocationInfo getLocationInfo(String imei, String id) {
        return ncgWatchMapper.getLocationInfo(imei,id);
    }

    @Override
    public NcgWatchAlarmInfo getAlarmInfo(String imei, String id) {
        return ncgWatchMapper.getAlarmInfo(imei,id);
    }
}
